FROM openjdk:8u302-jre
MAINTAINER "qingyan"
LABEL description="无"
ARG  JAR_FILE=target/yuan-boot.jar
WORKDIR app
COPY ${JAR_FILE} app.jar
#COPY prometheus/jmx_prometheus_javaagent-0.9.jar .
#COPY prometheus/prometheus-jmx-config.yaml .
EXPOSE 9000
#CMD java -javaagent:jmx_prometheus_javaagent-0.9.jar=8888:prometheus-jmx-config.yaml -Xms512m -Xmx512m -Xmn180m -XX:MetaspaceSize=240m -XX:MaxMetaspaceSize=240m -Xss256k -jar app.jar
CMD java -Xms512m -Xmx512m -Xmn180m -XX:MetaspaceSize=240m -XX:MaxMetaspaceSize=240m -Xss256k -jar app.jar
#使用G1回收器
#CMD java -XX:+UseG1GC -Xms512 -Xmx512m -Xss256k -XX:MaxGCPauseMillis=200 -jar app.jar